home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / cpcug.zip / KEY-FAKE.DOC < prev    next >
Text File  |  1987-04-20  |  4KB  |  127 lines

  1.           KEY-FAKE                               Charles Petzold
  2.           Command
  3.           Copyright (c) 1986, Ziff-Davis Publishing Co.
  4.           ______________________________________________________
  5.  
  6.           Purpose:  Supplies the series of keystrokes needed to
  7.                     initialize an application program on boot-up.
  8.  
  9.           Format:   KEY-FAKE ["xyz"] [nn] [0] [@F]
  10.                     Programname
  11.  
  12.                     Characters typed within a pair of single or
  13.                     double quotes ("xyz") are normal ASCII-
  14.                     character keystrokes.  Numbers (nn) not in
  15.                     quote marks are ASCII decimal codes, e.g., 13
  16.                     (Enter), 26 (Ctrl-Z), or 27 (Esc).  Numbers
  17.                     preceded by @ are the extended ASCII decimal
  18.                     codes (128 through 255) generated by the Alt
  19.                     keys, cursor keys, Ins and Del keys, and the
  20.                     Function keys (e.g., @61 is the F3
  21.                     keystroke).  The 0 is used with programs that
  22.                     check the keyboard buffer (it tells such
  23.                     programs the buffer is clear, so the programs
  24.                     will treat the succeeding keystroke
  25.                     separately).
  26.  
  27.           Remarks:  KEY-FAKE is of greatest use in batch files
  28.                     used to call up application programs.  For
  29.                     example, to enter Lotus's 1-2-3 and set it
  30.                     for File Retrieve, the following .BAT file
  31.                     would be appropriate:
  32.  
  33.                     CD \LOTUS
  34.                     KEY-FAKE 0 13 0 13 0 13 0 13 0 13 "/FR"
  35.                     LOTUS
  36.  
  37.                     This takes you past the necessary initial
  38.                     carriage returns and /FR command without
  39.                     having to type them in each time.
  40.  
  41.                     Similarly, if each time you enter BASICA you
  42.                     want to have a blue border, blue background,
  43.                     and yellow letters, you would create a batch
  44.                     file, B.BAT, containing the lines
  45.  
  46.                     KEY-FAKE "COLOR 14,1,1" 13 "CLS" 13
  47.                     BASICA
  48.  
  49.                     Notes:
  50.  
  51.                     1.   The keystroke sequence stored by KEY-
  52.                          FAKE is limited to 124 characters and
  53.                          must be on one continuous command line.
  54.                          Keystrokes not supported by PC BIOS
  55.                          (e.g., Alt-Home) cannot be stored.
  56.  
  57.                     2.   Programs such as XyWrite II that get
  58.                          keyboard information directly from the
  59.                          hardware keyboard interrupt will bypass
  60.                          KEY-FAKE.  KEY-FAKE will also not work
  61.                          well when you are on-line using a
  62.                          communications program.
  63.                                  Page -1-
  64.  
  65.                     3.   KEY-FAKE is memory resident, but can be
  66.                          executed multiple times in the same
  67.                          session without reloading.  However, if
  68.                          nested batch files cause it to be re-
  69.                          invoked before its initially stored
  70.                          keystroke sequence has been exhausted,
  71.                          the remaining initial keystrokes will be
  72.                          lost.
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.                                  Page -2-
  127.